package com.hongye.broker.controller;

import com.hongye.broker.service.AfficheService;
import com.hongye.common.response.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Controller
@RequestMapping("/affiche")
public class AfficheController {
    @Autowired
    private AfficheService afficheService;

    /*
    * 公告列表
    * */
    @RequestMapping("/list")
    public ResponseResult list(){
        ResponseResult responseResult = afficheService.list();
        return responseResult;
    }


    @RequestMapping("/log")
    public String login(){
        return "login";
    }
}
